package com.moyang.learn.alibabanacosdiscoveryserver.inter;

import com.moyang.learn.alibabanacosdiscoveryserver.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("alibaba-nacos-discovery-server2")
public interface IUserInter {

    @GetMapping("user/{id}")
    User getUser(@PathVariable("id") String id);
}
